<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="shortcut icon" href="<?php echo Yii::app()->request->baseUrl; ?>/images/favicon.ico"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<?php if(isset(Yii::app()->params['PageShortcut'])):
        foreach(Yii::app()->params['PageShortcut']['metaLink'] as $MetaName=>$MetaContent): ?>
<meta name="<?php echo $MetaName; ?>" content="<?php echo $MetaContent; ?>"/>
<?php endforeach; endif;?>

<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/simpleLog.css"/>

    <link rel="stylesheet" type="text/css" href="/css/slideContent.css"/>
<?php $this->widget('application.widgets.jui.initial');?>



<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div class="container" id="page">

<div id="header" class="printhide">
<div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div></div><!-- header -->
<div id="mainmenu" class="printhide">
<?php $this->widget('zii.widgets.CMenu',array(
	'items'=>array(
		array('label'=>'Home', 'url'=>array('/'), 'visible'=>Yii::app()->user->isGuest),
		array('label'=>'Company', 'url'=>array('/company/list'), 'visible'=>!Yii::app()->user->isGuest),
		array('label'=>'Cargo','url'=>array('/cargo'), 'visible'=>!Yii::app()->user->isGuest),
		array('label'=>'Packing list','url'=>array('/packing_list/create'), 'visible'=>!Yii::app()->user->isGuest),
                array('label'=>'Export information','url'=>array('/export_information'), 'visible'=>!Yii::app()->user->isGuest),
                array('label'=>'Report','url'=>array('/report'), 'visible'=>!Yii::app()->user->isGuest),
                array('label'=>'Login', 'url'=>array('/openid/request'), 'visible'=>Yii::app()->user->isGuest),
		array('label'=>'Logout', 'url'=>array('/openid/logout'), 'visible'=>!Yii::app()->user->isGuest)
	),
)); ?>
</div><!-- mainmenu -->

<?php $this->widget('zii.widgets.CBreadcrumbs', array(
		'links'=>$this->breadcrumbs,
	)); ?><!-- breadcrumbs -->

<?php echo $content; ?>
<!-- content -->

<div id="footer" class="printhide">
Copyright &copy; 2010 by WiNerdy.<br/>
All Rights Reserved.<br/>
<?php echo Yii::powered(); ?>
</div><!-- footer -->
<div style="display:none;" id="loading">Processing....</div>
</div><!-- page -->
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/javascript/main.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/javascript/ajaxloading.js"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/javascript/slideContent.js"></script>
</body>
</html>